package com.tonann.app.VO;

import com.tonann.app.domain.AppDevice;
import com.tonann.app.domain.AppSensor;
import org.apache.commons.collections4.map.HashedMap;

import java.util.List;
import java.util.Map;

public class MySensor {
    private MySensor() {
    }

    public Map<Long, List<AppDevice>> userDeviceMap = new HashedMap<>();

    public Map<String, List<AppSensor>> devicesSensorMap = new HashedMap<>();

    private static class MySensorHolder {
        public static MySensor instance = new MySensor();
    }

    public static MySensor getInstance() {
        return MySensorHolder.instance;
    }
}
